package com.urea.system.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.urea.system.mapper.AgentTerminalMapper;
import com.urea.system.domain.AgentTerminal;
import com.urea.system.service.IAgentTerminalService;

/**
 * 代理商终端绑定Service业务层处理
 * 
 * @author liuzd
 * @date 2023-08-01
 */
@Service
public class AgentTerminalServiceImpl extends ServiceImpl<AgentTerminalMapper, AgentTerminal> implements IAgentTerminalService
{
    @Autowired
    private AgentTerminalMapper agentTerminalMapper;

    /**
     * 查询代理商终端绑定
     * 
     * @param untitled 代理商终端绑定主键
     * @return 代理商终端绑定
     */
    @Override
    public AgentTerminal selectAgentTerminalByUntitled(Long untitled)
    {
        return agentTerminalMapper.selectAgentTerminalByUntitled(untitled);
    }

    /**
     * 查询代理商终端绑定列表
     * 
     * @param agentTerminal 代理商终端绑定
     * @return 代理商终端绑定
     */
    @Override
    public List<AgentTerminal> selectAgentTerminalList(AgentTerminal agentTerminal)
    {
        return agentTerminalMapper.selectAgentTerminalList(agentTerminal);
    }

    /**
     * 新增代理商终端绑定
     * 
     * @param agentTerminal 代理商终端绑定
     * @return 结果
     */
    @Override
    public int insertAgentTerminal(AgentTerminal agentTerminal)
    {
        return agentTerminalMapper.insertAgentTerminal(agentTerminal);
    }

    /**
     * 修改代理商终端绑定
     * 
     * @param agentTerminal 代理商终端绑定
     * @return 结果
     */
    @Override
    public int updateAgentTerminal(AgentTerminal agentTerminal)
    {
        return agentTerminalMapper.updateAgentTerminal(agentTerminal);
    }

    /**
     * 批量删除代理商终端绑定
     * 
     * @param untitleds 需要删除的代理商终端绑定主键
     * @return 结果
     */
    @Override
    public int deleteAgentTerminalByUntitleds(Long[] untitleds)
    {
        return agentTerminalMapper.deleteAgentTerminalByUntitleds(untitleds);
    }

    /**
     * 删除代理商终端绑定信息
     * 
     * @param untitled 代理商终端绑定主键
     * @return 结果
     */
    @Override
    public int deleteAgentTerminalByUntitled(Long untitled)
    {
        return agentTerminalMapper.deleteAgentTerminalByUntitled(untitled);
    }
}
